package TraitementMessages;

import mainProcess.MainProcessing;
import ihm.main.Traitement;

import com.lo23.data.serializable.*;

/**
 * @class PictureAnswerMessage
 * @author Vincent PALANCHER
 */
public class PictureAnswerMessage extends PictureMessage {

    private PictureCom picture;
    static final long serialVersionUID = 23201016L;

    public PictureAnswerMessage(String senderUID, PictureCom picture) {
        super(senderUID);
        this.picture = picture;
    }

    public void handleReceiption(MainProcessing mainProcessing)
    {
        // Transmission de l'image à l'IHM
        Traitement.getInstance().pictureResult(this.picture);
    }
}
